home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Format 1994 October
/
Macformat17.cdr
/
Shareware City
/
Developers
/
GAL ƒ
/
GAL examples
/
input echo
< prev
next >
Wrap
Text File
|
1994-07-11
|
511b
|
24 lines
; echos input to the screen
looptop
jump:sub input
compare:char '.'=>reg0 ; stops when given a period
jump:equal done
jump:sub output
jump looptop
done
halt
input ; this is the non-handshaking input routine
copy:byte instatus,Reg0
jump:equal input
copy:byte indata=>reg0
return
output ; this is the non-handshaking output routine
copy:long reg0,savedata
copy:byte outstatus=>reg0
jump:not_equal output
copy:long savedata,Reg0
copy:byte reg0,outdata
return
savedata variable:long 1
end